﻿<UserControl x:Class="Road3App.Views.UserControls.CellUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:uc="clr-namespace:Road3App.Views.UserControls"
             Width="20" Height="20">
    <Grid Name="LayoutRoot">
        <Rectangle Fill="{Binding State, Converter={StaticResource CellStateConv}}"/>
        <!--<Rectangle Fill="{Binding State, Converter={StaticResource CellStateConv2}}" Name="StateView"/>-->

        <uc:CrossRoadVehicleUC DataContext="{Binding Vehicle}"/>

        <Border BorderBrush="{Binding TrafficLight.State, Converter={StaticResource TLSConv}}"
                BorderThickness="1"/>
        <!--<Rectangle Fill="{Binding TrafficLight.State, Converter={StaticResource TLSConv}}"
                   Width="5" Height="5" HorizontalAlignment="Right" VerticalAlignment="Top" 
                   Visibility="Collapsed"/>-->
    </Grid>
</UserControl>
